Depicter\Database\Repository\DocumentRepository C

Total Complexity 120
Dependencies 8
Dependents 3
Total lines 882
Lines of code 429
Logical lines of code 225
Comment lines 317
Methods 41
Properties 1

Methods 41

Method Rating Maintainability Complexity Lines of code
getList()
A
43 14 44
saveEditorData()
A
47 9 37
duplicate()
A
49 9 30
revert()
A
51 8 24
findOne()
S
58 5 15
makeSlug()
S
59 5 15
geContent()
S
60 5 13
getConditionalDocumentIDs()
S
52 4 27
getLastPublishedAt()
S
67 4 7
update()
S
63 4 10
addRevision()
S
62 3 11
delete()
S
62 3 11
draftFields()
S
55 2 18
changeSlug()
S
65 3 9
isPublishedBefore()
S
65 3 10
find()
S
67 3 7
changeRevisionsStatus()
S
64 3 9
checkSlug()
S
63 2 11
isPublished()
S
69 2 7
defaultFields()
S
59 1 15
getCurrentUserId()
S
79 2 3
getStatus()
S
69 2 7
getFieldValue()
S
71 2 6
checkRevisionsLimit()
S
69 2 6
getPreviewImageUrl()
S
70 2 6
rename()
S
71 2 6
select()
S
70 2 5
create()
S
60 1 13
getPreviewImagePath()
S
79 1 3
getPreviewRelativeImagePath()
S
80 1 3
savePreviewImage()
S
72 1 6
__construct()
S
80 1 3
getRecentRevision()
S
73 1 4
getMergedFields()
S
74 1 4
document()
S
81 1 3
findOrCreate()
S
75 1 4
findById()
S
80 1 3
save()
S
76 1 4
all()
S
81 1 3
getParsedEditorContent()
S
75 1 4
getLastDocument()
S
79 1 3